import numpy as np
x=np.array([1,4,3,-1,6,9])
t=x.argsort()
print(x)
print(t)

# -1 1 3 4 6 9